/*****************************************************************************
 * Copyright (C) Stacy Curl. All rights reserved.                            *
 * ------------------------------------------------------------------------- *
 * The software in this package is published under the terms of the BSD      *
 * style license a copy of which has been included with this distribution in *
 * the LICENSE.txt file.                                                     *
 *****************************************************************************/
package picounit.features.coverage_measuring.mutator;

class CoveragePoint {
	private final String className;
	private final String methodName;
	private final int lineNumber;

	public CoveragePoint(String className, String methodName, int lineNumber) {
		this.className = className;
		this.methodName = methodName;
		this.lineNumber = lineNumber;
	}

	public String className() {
		return className;
	}

	public boolean hasClassName(String className) {
		return className().equals(className);
	}

	@Override
	public String toString() {
		return className() + "." + methodName + ":" + lineNumber;
	}
}
